package Test;

import java.util.ArrayList;

import org.junit.Test;

import DBLayer.DBTrainingActivity;
import ModelLayer.TrainingActivity;

public class TestDBTrainingActivity
{
	DBTrainingActivity dbta = new DBTrainingActivity();
	ArrayList<TrainingActivity> talist = dbta.getAllTrainingActivity(false);

	@Test
	public void testGetAllTrainingActivity() {
	    System.out.println("\nTrainingActivity size : " + talist.size() + "\n");
	}

	@Test
	public void testSearchTrainingActivityID() {
		int id = 1;
		while(id <= talist.size())
		{
			TrainingActivity ta = dbta.searchTrainingActivityID(id, false);
			System.out.println("TrainingGroupID       : " + ta.getTrainingActivityID());
			System.out.println("Name                  : " + ta.getName());
			System.out.println("TrainingCategoryID    : " + ta.getTrainingGroup().getTrainingGroupID());
			System.out.println("-------------------------------------------");
			id++;
		}
	}
/*
	@Test
	public void testSearchTrainingGroupName() {
		fail("Not yet implemented");
	}

	@Test
	public void testInsertTrainingGroup() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateTrainingGroup() {
		fail("Not yet implemented");
	}

	@Test
	public void testDelete() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAllTrainingGroup() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchTrainingGroupID(){
		fail("Not yet implemented");
	}
*/
}
